package com.css.usercenter.study.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 积分变更记录表
 * </p>
 *
 * @author css
 * @since 2019-12-08
 */
@TableName("bonus_event_log")
public class BonusEventLog implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * Id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * user.id
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 积分操作值
     */
    @TableField("value")
    private Integer value;

    /**
     * 发生的事件
     */
    @TableField("event")
    private String event;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 描述
     */
    @TableField("description")
    private String description;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public String getEvent() {
        return event;
    }

    public void setEvent(String event) {
        this.event = event;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public String toString() {
        return "BonusEventLog{" +
        "id=" + id +
        ", userId=" + userId +
        ", value=" + value +
        ", event=" + event +
        ", createTime=" + createTime +
        ", description=" + description +
        "}";
    }
}
